<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
require_once("../MotorClases.php");

$objDemo=new Demo();
try{
    $objDemo->setName("");
    $objDemo->diHola();
}catch(Exception $e){
    Core::MsgError("Error numero <b>{$e->getCode()}</b>, {$e->getMessage()}".Core::Atras());
    if ($e->getCode()==3) {
        echo('<br>Error Tres.');
    }else {
        echo('<br>Error NO TRES.');
        
    }

}

?>
